package com.bgs.eat.commodity.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName CommodityTypeEntity
 * @Description TODO
 * @Author lzy
 * @Date 2022/10/19 14:04
 **/
@Data
@Table(name = "commodity_type")
public class CommodityTypeEntity {

    @Id
    private Integer id;

    private String typeName; // 类别名称

    private Integer shopId; // 店铺id

    private Integer userProtalId;   // 用户id

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime; // 创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime; // 修改时间

    private Integer delFlag;    // 删除状态 0未删除 1已删除

}
